package com.ruoyi.module.szLiveRoom.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 直播间对象 sz_live_room
 * 
 * @author yqq
 * @date 2023-10-18
 */
@Data
public class SzLiveRoom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 直播间标题 */
    @Excel(name = "直播间标题")
    private String roomTitle;

    /** 直播间描述/简介 */
    @Excel(name = "直播间描述/简介")
    private String roomDesc;

    /** 聊天室ID */
    @Excel(name = "聊天室ID")
    private Long chatRoomId;

    /** 推流地址 */
    @Excel(name = "推流地址")
    private String pushUrl;

    /** HTTP拉流地址 */
    @Excel(name = "HTTP拉流地址")
    private String pullUrl;

    /** RTMP拉流地址 */
    @Excel(name = "RTMP拉流地址")
    private String pullRtmpUrl;

    /** 录播视频url */
    @Excel(name = "录播视频url")
    private String videoUrl;

    /** 直播状态：0-初始化 1-直播中 2-已结束 */
    @Excel(name = "直播状态：0-初始化 1-直播中 2-已结束")
    private String status;

    /** 直播状态streamName */
    @Excel(name = "直播状态streamName")
    private String streamName;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 头像 */
    @Excel(name = "头像")
    private String userImage;

    /** 封面图片 */
    @Excel(name = "封面图片")
    private String coverImage;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roomTitle", getRoomTitle())
            .append("roomDesc", getRoomDesc())
            .append("chatRoomId", getChatRoomId())
            .append("pushUrl", getPushUrl())
            .append("pullUrl", getPullUrl())
            .append("pullRtmpUrl", getPullRtmpUrl())
            .append("videoUrl", getVideoUrl())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("userImage", getUserImage())
            .append("coverImage", getCoverImage())
            .toString();
    }
}
